package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.dto.ProInspDTO;
import com.woniuxy.mesboot.entity.MesProductInspection;
import com.woniuxy.mesboot.mapper.MesProductInspectionMapper;
import com.woniuxy.mesboot.service.ProductInspectionService;
import com.woniuxy.mesboot.vo.ProInspVO;
import com.woniuxy.mesboot.vo.ProductInspectionVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ProductInspectionServiceImpl implements ProductInspectionService {
    @Resource
    private MesProductInspectionMapper productInspectionMapper;

    @Override
    public List<ProductInspectionVO> selectByProduct() {
        return productInspectionMapper.selectByProduct();
    }

    @Override
    public List<ProInspVO> selectAll(ProInspDTO inspDTO) {
        return productInspectionMapper.selectAll(inspDTO);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return productInspectionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesProductInspection record) {
        return productInspectionMapper.insert(record);
    }

    @Override
    public int insertSelective(MesProductInspection record) {
        return productInspectionMapper.insertSelective(record);
    }

    @Override
    public MesProductInspection selectByPrimaryKey(Long id) {
        return productInspectionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesProductInspection record) {
        return productInspectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesProductInspection record) {
        return productInspectionMapper.updateByPrimaryKey(record);
    }
}
